package org.jradweb.core.orm.validator;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.hibernate.validator.ValidatorClass;

@Documented
@ValidatorClass(UniqueValidator.class)
@Target(ElementType.TYPE)
@Retention(RUNTIME)
public @interface Unique {
    String[] propertyName(); 
	String message() default "{validator.unique}";
}
